
#include "mmap_sort_v_1.h"



//Определение уровней дебаггинга. Вы сами можете добавлять 
//новые уровни

int main(int argc, char *argv[]) {
    Log::Instanse().log("INFO", "Start new session.");
    
    if(argc!=3){
        cerr<<"Неккоректный input."<<endl
            <<"Usage: ./mmap_archive <path-to-source> <path-to-destination>"<<endl;
        Log::Instanse().log("ERROR", "Incorrect input format. Exiting.");
        exit(-1);
    }
    Log::Instanse().log("INFO", string("Args: ")+string(argv[1])+string(", ")+
        string(argv[2]));
    
    FileRead file(argv[1]);
    
    FileWrite file2(argv[2]);
    
    Log::Instanse().log("INFO", "start main-soft algorythm");
    main_alg(sort_vector(file), file2);
    Log::Instanse().log("INFO", "end main-soft algorythm");
    
    Log::Instanse().log("INFO", "end session.");
}

